import request from '@/utils/request'

// 查询追溯规则列表
export function listYiqiTraceRule(query) {
  return request({
    url: '/trace/yiqiTraceRule/list',
    method: 'get',
    params: query
  })
}

// 查询追溯规则详细
export function getYiqiTraceRule(id) {
  return request({
    url: '/trace/yiqiTraceRule/' + id,
    method: 'get'
  })
}

// 新增追溯规则
export function addYiqiTraceRule(data) {
  return request({
    url: '/trace/yiqiTraceRule',
    method: 'post',
    data: data
  })
}

// 修改追溯规则
export function updateYiqiTraceRule(data) {
  return request({
    url: '/trace/yiqiTraceRule',
    method: 'put',
    data: data
  })
}

// 删除追溯规则
export function delYiqiTraceRule(id) {
  return request({
    url: '/trace/yiqiTraceRule/' + id,
    method: 'delete'
  })
}
